import {post,get} from '../utils/request'
// 封装接口
// 列表
const newList=(params:any)=>{
    return get('api/visit/news/list',params)
}
// 添加
const newAdd=(data:any)=>{
    return post('api/visit/news/add',data)
}
// 删除
const newDel=(params:any)=>{
    return get('api/visit/news/del',params)
}
// 详情
const newDeatil=(params:any)=>{
    return get('api/visit/news/show',params)
}
// 修改
const newUpd=(id:number,data:any)=>{
    return post('api/visit/news/edit',{id,formdata:data})
}
export{newList,newAdd,newDel,newDeatil,newUpd}